package DARCOShared.responses;

public class GetCardImageResponse implements ResponseBase, java.io.Serializable{
	private static final long serialVersionUID = 1L;
	public String error;
	public boolean err;
	public byte[] cardImage;
	
	public GetCardImageResponse(){}
	
	public GetCardImageResponse(String error){
		this.err=true;
		this.error=error;
	}
	
	public GetCardImageResponse(byte[] image){
		this.err=false;
		this.cardImage=image;
	}
	
	@Override
	public ResponseType getResponseType() {
		return ResponseType.GetCardImage;
	}

}
